package com.quanquan.store.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @ClassName:CouponHistory
 * @Description:TODO
 * @Author:xiongjunbao
 * @Date:2019/3/28 15:16
 * @Version 1.0
 */
@Data
@Entity
@Table(name = "oo_coupon_history")
public class CouponHistory implements Serializable {

    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;
    @Column(name = "create_time", length = 32)
    private String createTime;
    @Column(name = "update_time", length = 32)
    private String updateTime;
    @Column(name = "status_show", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer statusShow;
    @Column(name = "status_remove", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer statusRemove;
    /**
     * 券id
     */
    @Column(name = "coupon_id", length = 64)
    private String couponId;
    /**
     * 用户id
     */
    @Column(name = "user_id", length = 64)
    private String userId;
    /**
     * 搜索时输入的字段
     */
    @Column(name = "countent", length = 64)
    private String countent;
}
